/* eslint-disable react-refresh/only-export-components */
import { useState } from "react";
import { createContainer } from "unstated-next";

function useContainer() {
  const [count, setCount] = useState(0);
  const [name, setName] = useState("hello world");
  return {
    count,
    setCount,
    name,
    setName,
  };
}

const Container = createContainer(useContainer);

export type ContainerType = typeof useContainer;

export { useContainer };

export default Container;
